package com.pentofab.payrollmanagement.ui.controller;

import java.net.URL;
import java.util.ArrayList;
import java.util.ResourceBundle;

import com.pentofab.payrollmanagement.application.PayrollApplicationFactory;
import com.pentofab.payrollmanagement.dao.LeaveDAO;
import com.pentofab.payrollmanagement.dao.SalaryDAO;
import com.pentofab.payrollmanagement.dao.model.Company;
import com.pentofab.payrollmanagement.dao.model.Holiday;
import com.pentofab.payrollmanagement.dao.model.HolidaysDetail;
import com.pentofab.payrollmanagement.dao.model.Leave;
import com.pentofab.payrollmanagement.dao.model.LeaveDetail;
import com.pentofab.payrollmanagement.dao.model.PTSlab;
import com.pentofab.payrollmanagement.dao.model.PTSlabDetail;
import com.pentofab.payrollmanagement.dao.model.UserAccounts;
import com.pentofab.payrollmanagement.exception.BusinessException;
import com.pentofab.payrollmanagement.ui.control.CustomTextField;
import com.pentofab.payrollmanagement.utilities.PayRollUtility;

import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.control.ChoiceBox;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.VBox;

public class LeaveMasterController extends AbstractUIController implements
	Initializable, FormValidator{
	
	 @FXML
	 private VBox root;
	 @FXML
	 CustomTextField el;
	 @FXML
	 CustomTextField sl;
	 @FXML
	 CustomTextField cl;
	 
	public void save() {
		
		
	}

	public void goBack(ActionEvent event) {

		if (getParent() != null && getParent().length() > 0) {
			PayrollApplicationFactory.getMainController().showScreen(
					getParent(), false);
		}
	
	}

	public void reset() {
		
		
	}
	@Override
	public Parent getView() {
		return root;
	}

	@Override
	public String getTitle() {
		return "Leave Master";
	}
	
	@Override
	public void refreshUI(Object... args) {
		el.clear();
		cl.clear();
		sl.clear();
		
	}
	@Override
	public void initialize(URL arg0, ResourceBundle arg1) {
		
	}

	
	@Override
	public String getValidationMessage() {
		
		
		return "";
	}

	@Override
	public boolean isValid() {
		return false;
	}
}
